const { clientWidth:w } = document.body

export const tooltip = {
  trigger: 'item',
  formatter: '{b}: {c}'
}

export const seriesConfig = {
  name: '',
  type: 'pie',
  radius: ['45%', '70%'],
  center: ['40%', '50%'],
  avoidLabelOverlap: false,
  label: {
    show: false,
    position: 'center'
  },
  emphasis: {
    label: {
      show: false
    }
  },
  labelLine: {
    show: false
  },
}

export const legendConfig = {
  icon: "circle",
　itemWidth: w/1920 * 10,
　itemHeight: w/1920 * 10,
  orient: 'vertical',
  top: '40%',
  right: '1.5%',
  textStyle:{//图例文字的样式
    color:'#fff',
    fontSize: w/1920 * 14
  },
}